YLT = {};

YLT.mobile = {};

YLT.mobile.public = {};

YLT.mobile.public.zIndex = 10000;

YLT.mobile.public.setCopyright = function(){
	var h;
	var copyright = $('#copyright');
	if(copyright.hasClass('fixed') || copyright.is(':hidden')){ h = $('body').outerHeight() + copyright.outerHeight(); }else{ h = $('body').outerHeight(); }
	if(h < $(window).height()){ copyright.addClass('fixed'); }else{ copyright.removeClass('fixed'); }
	if(copyright.is(':hidden')){ copyright.show(); }
}

$(function(){
	$(window).on('load resize', YLT.mobile.public.setCopyright);
});